package com.design.cjm.behavioral.state.example;

/**
 * 维护一个ConcreteState子类的实例
 * 这个实例定义当前的状态
 *
 * @Author: Jie Ming Chen
 * @Date: 2018/9/24
 * @Version 1.0
 */
public class Context {

    public AbstractState state;

    public Context(AbstractState state) {
        this.state = state;
    }

    public void request() {

        state.handle(this);
    }
}
